cmake_minimum_required(VERSION 3.8)
project(p9n_test)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()

find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()


# Playstation Test ==================================================
set(TARGET p9n_test_node)
ament_auto_add_library(
  ${TARGET}
    SHARED
      src/${TARGET}.cpp
      src/workflow_handler.cpp)
rclcpp_components_register_node(
  ${TARGET}
    PLUGIN "p9n_test::PlayStationTestNode"
    EXECUTABLE ${TARGET}_exec)
# End Playstation Test ==============================================

if(BUILD_TESTING)
  find_package(ament_lint_auto REQUIRED)
  set(ament_cmake_copyright_FOUND TRUE)
  set(ament_cmake_cpplint_FOUND TRUE)
  ament_lint_auto_find_test_dependencies()
endif()

ament_auto_package(INSTALL_TO_SHARE launch)
